﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace PedidosPaquetesTuristicos
{
    public partial class ListarPaquetes : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Soa_WebServices.WebServiceRegistraCliente soa_WebServices = new Soa_WebServices.WebServiceRegistraCliente();
            System.Data.DataTable dtDatos=soa_WebServices.ListarPagos().Tables[0];
            gvwPagos.DataSource = dtDatos;
            gvwPagos.DataBind();
            ViewState["dtDatos"] = dtDatos;

        }

        protected void gvwPagos_PageIndexChanging(object sender, GridViewPageEventArgs e)
        {
            gvwPagos.PageIndex = e.NewPageIndex;
            gvwPagos.DataSource = (System.Data.DataTable)ViewState["dtDatos"];
            gvwPagos.DataBind();
        }
    }
}